/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.openbravo.bean;

import cn.ekuma.data.dao.bean.I_AutoGeneratorStringKey;
import cn.ekuma.data.dao.bean.I_ModifiedLogBean;
import java.util.Date;

/**
 *
 * @author Administrator
 */
public class ProductAuxiliar implements I_ModifiedLogBean<String>,I_AutoGeneratorStringKey{
       /**
	 * 
	 */
	private static final long serialVersionUID = 8261243186115343297L;
	private String id;
       private String product1;
       private String product2;
       private Date lastModified;

       Product product;
       
       
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProduct1() {
        return product1;
    }

    public void setProduct1(String product1) {
        this.product1 = product1;
    }

    public String getProduct2() {
        return product2;
    }

    public void setProduct2(String product2) {
        this.product2 = product2;
    }


    public String getKey() {
       return  id;
    }

    public Date getLastModified() {
        return lastModified;
    }

    public void setLastModified(Date lastModified) {
        this.lastModified = lastModified;
    }

    public void setKey(String key) {
        this.id=key;
    }

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		if(product!=null)
			product2=product.getID();
		else
			product2=null;
		this.product = product;
	}
       
}
